import { Delivery, searchVO } from "@/typings";
import requestWithToken from "@/utils/request";

export const saveDelivery = (data: Delivery) => {
  return requestWithToken("/delivery/save", "POST", data);
};
export const listDelivery = (data: searchVO) => {
  return requestWithToken("/delivery/list", "GET", data);
};
export const deleteDelivery = (id: string) => {
  return requestWithToken("/delivery/delete", "GET", { id });
};
